<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div th:replace="client/header::header(${tennisRacket.title},null)"></div>
<body>
<article class="main-content post-page">
    <div class="post-header">
        <h1 class="post-title" itemprop="name headline" th:text="${tennisRacket.title}"></h1>
        <div class="post-data">
            <time th:datetime="${commons.dateFormat(tennisRacket.created)}" itemprop="datePublished" th:text="'发布于 '+ ${commons.dateFormat(tennisRacket.created)}"></time>
        </div>
    </div>
    <br />
    <div>
		<ul>
			<li th:title="${tennisRacket.number}">商品编号：<span th:text="${tennisRacket.number}"></span></li>
			<li th:title="${tennisRacket.headsize}">拍面大小：<span th:text="${tennisRacket.headsize}">英寸</span></li>
			<li th:title="${tennisRacket.weight}">球拍重量：<span th:text="${tennisRacket.weight}">克</span></li>
			<li th:title="${tennisRacket.balance}">空拍平衡点：<span th:text="${tennisRacket.balance}">厘米</span></li>
			<li th:title="${tennisRacket.length}">球拍长度：<span th:text="${tennisRacket.length}">厘米</span></li>
			<li th:title="|${tennisRacket.stringPatternMain}X${tennisRacket.stringPatternCross}|">穿线方式：<span th:text="|${tennisRacket.stringPatternMain}X${tennisRacket.stringPatternCross}"></span></li>
			<li th:title="|${tennisRacket.recTensionMin}-${tennisRacket.recTensionMax}|">穿线磅数：<span th:text="|${tennisRacket.recTensionMin}磅-${tennisRacket.recTensionMax}磅|"></span></li>
			<li th:title="${tennisRacket.material}">材质：<span th:text="${tennisRacket.material}"></span></li>
			<li th:title="${tennisRacket.newDegree}">新旧程度：<span th:text="${tennisRacket.newDegree}"></span></li>
			<li th:title="${tennisRacket.number}">商品编号：<span th:text="${tennisRacket.number}"></span></li>
			<li th:title="${tennisRacket.number}">商品编号：<span th:text="${tennisRacket.number}"></span></li>
			<li th:title="${tennisRacket.number}">商品编号：<span th:text="${tennisRacket.number}"></span></li>
		</ul>
	</div>
    <div id="post-content" class="post-content content" th:utext="${commons.tennisRacket(tennisRacket.content)}"></div>
    <img width="50%" class="post-content img" th:src="@{${commons.show_thumb(tennisRacket)}}"/>
</article>
<div th:replace="client/comments::comments"></div>
<div th:replace="client/footer::footer"></div>
<!-- 使用layer.js实现图片缩放功能 -->
<script type="text/JavaScript">
    $('.post-content.img').on('click', function(){
    	alert("pic large");
        var imgurl=$(this).attr('src');
        var w=this.width*2;
        var h=this.height*2+50;
        layer.open({
            type: 1,
            title: false, //不显示标题栏
            area: [w+"px", h+"px"],
            shadeClose: true, //点击遮罩关闭
            content: '\<\div style="padding:20px;">' +
                    '\<\img style="width:'+(w-50)+'px;" src='+imgurl+'\>\<\/div>'
        });
    });
</script>
</body>
</html>